<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script src="js/jquery-3.4.1.min.js"></script>

    <input class="del"></input>

    <script>
       /* 对dom元素绑定事件的另一种写法 */

       //1.绑定一个事件
       $(".del").on('click',function(){
           alert("hello！");
       });

       //2.绑定多个事件
       $(".del").on('click mouseover',function(){
           //$(this).css("border","2px solid red");
           alert("hello！");
       });
    </script>
</body>
</html>